import { StorageService } from './services/storage.service';
import { RequestService } from './services/request.service';
import { HttputilsService } from './services/httputils.service'
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms'
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { HeaderComponent } from './components/header/header.component';
import { FormComponent } from './components/form/form.component';
import { ListComponent } from './components/list/list.component';
import { NewsComponent } from './components/news/news.component';
import { FatherComponent } from './components/father/father.component';
import { SonComponent } from './components/son/son.component';
import { LifecycleComponent } from './components/lifecycle/lifecycle.component';
import { RxComponent } from './components/rx/rx.component';
import { HttpComponent } from './components/http/http.component';
import { HttpClientModule, HttpClientJsonpModule } from '@angular/common/http';
import { NewdetailComponent } from './components/newdetail/newdetail.component';
import { IndexComponent } from './component/index/index.component';
import { SportComponent } from './component/index/sport/sport.component';
import { MusicComponent } from './component/index/music/music.component';
import { MusiclistComponent } from './component/musiclist/musiclist.component';
import { MusicdetailComponent } from './component/musiclist/musicdetail/musicdetail.component';
import { HomeComponent } from './component/home/home.component';
import { UserModule } from './module/user/user.module';
import { ProductModule } from './module/product/product.module';
import { ArticleModule } from './module/article/article.module';
@NgModule({
  declarations: [
    AppComponent,
    HeaderComponent,
    FormComponent,
    ListComponent,
    NewsComponent,
    FatherComponent,
    SonComponent,
    LifecycleComponent,
    RxComponent,
    HttpComponent,
    NewdetailComponent,
    IndexComponent,
    SportComponent,
    MusicComponent,
    MusiclistComponent,
    MusicdetailComponent,
    HomeComponent
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    FormsModule,
    HttpClientModule,
    HttpClientJsonpModule,
    UserModule,
    ProductModule,
    ArticleModule
  ],
  // 定义服务
  providers: [StorageService, RequestService, HttputilsService],
  bootstrap: [AppComponent]
})
export class AppModule { }
